import { App, createApp } from 'vue'

//
// import {VxeUI} from 'vxe-pc-ui'
//
import { VxeTable, VxeColumn, VxeColgroup, VxeGrid, VxeToolbar } from 'vxe-table'

// import VxeTable from 'vxe-table'
import 'vxe-table/lib/style.css'
//
// import VxeUI from 'vxe-pc-ui'
// import 'vxe-pc-ui/lib/style.css'

// 导入主题变量，也可以重写主题变量
// import 'vxe-pc-ui/styles/cssvar.scss'

const plugins = [
  // VxeUI,
  VxeTable
  // VxeColgroup,
  // VxeToolbar
]
const components = [VxeColumn, VxeGrid]

export const setupVxePlugin = (app: App<Element>) => {
  components.forEach((component) => {
    app.component(component.name, component)
  })
  plugins.forEach((component) => {
    app.use(component)
  })
  // app.use(VxeTable)
}
